#Introduction and installation of Python
Python is an easy-to-learn, powerful programming language. It provides efficient high-level data structures and simple and effective object-oriented programming. Python's elegant syntax and dynamic typing, as well as the nature of an interpreted language, make it an ideal language for writing scripts and rapidly developing applications on most platforms.
#Installation
#Windows
Download the installation package from Python's official website:
Run the installer, check Add python.exe to PATH
, and click Install Now
to start the installation:
After the installation is complete, press Win
+ R
, enter powershell
, click OK, and open PowerShell:
Type python
in the black (or blue) window that starts up, then press Enter
:
The installation is successful as shown in the figure.
#Linux
APT:
sudo apt install python3 python-is-python3
YUM:
sudo yum install python3 python-is-python3
Other package managers operate in a similar way.
#MacOS
Download the MacOS version installation package from Python's official website and install it: